package com.tourscool.springboot.starter.redisson;

import com.tourscool.springboot.starter.redisson.config.ClusterServersConfig;
import com.tourscool.springboot.starter.redisson.config.ReplicatedServersConfig;
import com.tourscool.springboot.starter.redisson.config.SingleServerConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 我长得帅，不需要注释
 *
 * @author Carlton
 * @date 2018/8/22
 */
@ConfigurationProperties(prefix = "redisson")
public class RedissonProperties {
    private String type;
    private SingleServerConfig single;
    private ClusterServersConfig cluster;
    private ReplicatedServersConfig replicated;
    private Integer threads = null;
    private Integer nettyThreads = null;

    public String getType() {
        return type;
    }

    public void setType(final String type) {
        this.type = type;
    }

    public SingleServerConfig getSingle() {
        return single;
    }

    public void setSingle(final SingleServerConfig single) {
        this.single = single;
    }

    public ClusterServersConfig getCluster() {
        return cluster;
    }

    public void setCluster(final ClusterServersConfig cluster) {
        this.cluster = cluster;
    }

    public ReplicatedServersConfig getReplicated() {
        return replicated;
    }

    public void setReplicated(final ReplicatedServersConfig replicated) {
        this.replicated = replicated;
    }

    public Integer getThreads() {
        return threads;
    }

    public void setThreads(final Integer threads) {
        this.threads = threads;
    }

    public Integer getNettyThreads() {
        return nettyThreads;
    }

    public void setNettyThreads(final Integer nettyThreads) {
        this.nettyThreads = nettyThreads;
    }
}
